﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package com.fminutes.vinciDll {
    import flash.utils.*;

    public class LisDictionary {

        private static var instance:LisDictionary;

        public var listDic:Dictionary;
        public var lisDllFileObjct:Array;
        public var classListDic:Dictionary;

        public function LisDictionary(){
            if (instance == null){
                this.listDic = new Dictionary();
                this.classListDic = new Dictionary();
                this.lisDllFileObjct = [];
            } else {
                throw (new Error("实例AnalyzeDictionary出错"));
            };
        }
        public static function getInstance():LisDictionary{
            if (!instance){
                instance = new (LisDictionary)();
            };
            return (instance);
        }

        public function registerDic(_arg1:String, _arg2:Function):void{
            if (this.listDic[_arg1]){
                this.listDic[_arg1].push(_arg2);
            } else {
                this.listDic[_arg1] = [_arg2];
            };
        }
        public function registerMaterialClassDic(_arg1:String, _arg2:String, _arg3:Function, _arg4:Boolean, _arg5:String=""):void{
            if (_arg5 != ""){
                if (this.classListDic[(_arg1 + _arg5)]){
                    this.classListDic[(_arg1 + _arg5)].push({
                        className:_arg2,
                        completeFunc:_arg3,
                        typeFlag:_arg4
                    });
                } else {
                    this.classListDic[(_arg1 + _arg5)] = [{
                        className:_arg2,
                        completeFunc:_arg3,
                        typeFlag:_arg4
                    }];
                };
            } else {
                if (this.classListDic[_arg1]){
                    this.classListDic[_arg1].push({
                        className:_arg2,
                        completeFunc:_arg3,
                        typeFlag:_arg4
                    });
                } else {
                    this.classListDic[_arg1] = [{
                        className:_arg2,
                        completeFunc:_arg3,
                        typeFlag:_arg4
                    }];
                };
            };
        }

    }
}//package com.fminutes.vinciDll 
